home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
keyb
/
toddy211.zip
/
TODDY.DOC
< prev
Wrap
Text File
|
1990-04-07
|
12KB
|
310 lines
Toddy
Version 2.11
April 6, 1990
Copyright (c) 1988-1990 Eric Tauck
All Rights Reserved
Toddy is a terminate and stay resident (TSR) utility that enhances the
built-in DOS command line editing and provides a command line scroll-
back. Toddy works by trapping the DOS system interrupt (21H) and
replacing the string input function (0AH). Only programs using
function 0AH, like the DOS command processor COMMAND.COM or DEBUG.COM,
will be affected by Toddy.
The BIOS services are used for reading and writing to the screen and
should be compatible with most video adapters in both text and
graphics modes. DOS is used for reading from the keyboard.
Installation
------------
Toddy is installed by running it from the command line. The enhanced
editing capabilities are available upon installation.
Toddy uses a minimum of about 2500 bytes of memory. The memory
consumption increases according to the command stack size specified
when Toddy is installed.
Once installed, Toddy may be disabled with the /RD option and
reenabled with the /RE option. This might be useful if an application
seems to conflict with Toddy. Toddy may also be removed from memory
with the uninstall option (/UN).
Editing
-------
The enhanced DOS editing commands are available immediately upon
installation.
The left and right arrow keys may be used to non-destructively move
the cursor left and right. Other keys for moving the cursor and
editing the text are listed in the Command Key section.
Note that the standard DOS editing keys are not implemented.
Command Stack
-------------
Each line of input is copied to the command stack for later retrieval.
If there isn't enough room on the stack, Toddy will delete the oldest
saved input line to make room.
An input line is not saved to the command stack if it is identical to
the last saved input line. Certain options can also be used to
prevent other types of input lines from being saved. See the
descriptions of the /IA, /IL, and /IU options in the Options section.
The up arrow key can be used to recall the last input line.
Continually pressing the up arrow key will recall progressively older
input lines. The down arrow key recalls newer input lines, the
opposite of the up arrow key. Other keys for scrolling through the
command stack are listed in the Command Key section.
When traversing the command stack, the stack pointer will wrap from
the top to the bottom, or from the bottom to the top.
Searching
---------
The command stack can be searched for specific input lines by matching
the beginning characters. For instance, if you recently entered a
long command like:
tcc -v -ms zorro init.obj graflib.lib extra.lib
you can search for this particular input line by typing the first few
characters, "tcc", and then pressing the Tab key. If there is more
than one saved input line that begins with "tcc", repeatedly pressing
Tab will find each occurrence. If there are no more occurrences, an
empty line will be displayed. In this case, pressing Escape will
restore the characters used in the search.
The characters to be used in the search must be entered from the top
command stack location (i.e. before pressing the up or down arrow
keys, OR after pressing ^End, OR after a failed search, etc.).
Options
-------
Options take affect when Toddy is installed or can be passed to an
already resident Toddy with the /RS option. Options can also be
written to the executable file TODDY.COM with the /WR options so they
need not be specified the next time Toddy is invoked.
A brief list of the Toddy command line options are displayed to the
screen by running:
TODDY ?
In the option descriptions, a 'd' denotes a decimal digit and an 'x'
denotes a hexadecimal digit. The number of decimal or hexadecimal
digits serve as only a general reference to the magnitude of the
number, in most cases fewer or more digits are allowable.
Option descriptions:
/CCxx Cursor color. This is the attribute (or color in graphics
mode) of the character at the cursor location. The default
is 7.
/CExx End color. This is the attribute (or color in graphics
mode) of the space after any entered text. The default is
7.
/CTxx Text color. This is the attribute (or color in graphics
mode) of any entered text to the left or right of the
cursor. The default is 7.
/IA Input all. Save all input lines to the command stack
without checking for uniqueness (reverse of the /IU
option). This is the default.
/II Insert mode. New characters are inserted at the location
of the cursor without overwriting any characters to the
right. This is the default.
/ILddd Input length. If an input line is shorter than the
specified length, the input is not saved on the command
stack. This is useful for filtering out trivial commands,
like DIR. The default minimum length is 4.
/IO Overwrite mode. Characters to the right of the cursor are
overwritten by any new input.
/IS Insert save. The insert state, as set by the Insert key or
the /II and /IO options, is preserved between inputs.
/IR Insert reset. The insert state, as set by the /II and /IO
options, is reset with each input. This is the default.
/IU Input unique. Saves only unique input lines (i.e.
different than all other saved input lines) to the command
stack. This option is most useful if you primarily use the
search command to find past input.
/RD Disable resident Toddy. Input requests are ignored by
Toddy and passed down the interrupt chain, probably to DOS.
This might be useful for using an application which
conflicts with Toddy. Toddy is reenabled with the /RE
option.
/RE Enable resident Toddy. This reverses the effects of the
/RD option.
/RS Send options to resident Toddy. This is used to send
options to Toddy after it has already been installed. Some
options (namely /ST) can only be set during installation.
/SExxxx Entry cursor scan pattern. This allows the manipulation of
the hardware cursor each time Toddy starts to input a line.
The first byte of the 16 bit value is the starting cursor
scan line and the second byte is the ending cursor scan
line. MDA cursors have 14 scan lines (numbered 0 to 13),
CGA cursors have 8, EGA cursors have 14, and VGA cursors
have 16. If bit 13 of the value is set (i.e. /SE2000), the
cursor is disabled.
/SN No cursor scan manipulation. This disables the /SE and /SX
options. This the default.
/SXxxxx Exit cursor scan pattern. This allows the manipulation of